<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ezcomp="http://java.sun.com/jsf/composite/ezcomp">

    <ui:composition template="default_layout_with_menu.xhtml">
        <!-- ui:param name="keep_messages" value="true"/ -->
        <ui:define name="titulo-pagina">Dados do Fornecedor</ui:define>
        <ui:define name="content">

            <p:panel id="panelForm" header="Dados do Fornecedor" >
                <p:messages />
                <!--
		     ATENÇÃO: O componente abaixo deve apontar para a propriedade chave da entidade.
		     Por favor, verifique o nome do  atributo chave da sua entidade e altere abaixo
		     conforme necessário.
		-->
                <h:inputHidden value="#{apostaJsfBean.aposta.idAposta}"/>

                <h:form>

                    <p:growl id="messages"/> 
                    <p:panel> 
                        <p:commandButton value="Anterior"  />
                        <p:commandButton type="button" value="RODADA" onclick="dlg.show()" />  
                        <p:commandButton value="Próxima"  />
                    </p:panel>

                    <p:dialog header="Enter FirstName" widgetVar="dlg" resizable="false">  
                        <h:form>  

                            <h:panelGrid columns="6" style="margin-bottom:10px">
                                <p:commandButton value="1"  />
                                <p:commandButton value="2" />
                                <p:commandButton value="3" image="#{apostaJsfBean.field}" />
                                <p:commandButton value="4" />
                                <p:commandButton value="5" />
                                <p:commandButton value="6" />
                                <p:commandButton value="7" />
                                <p:commandButton value="8" />
                                <p:commandButton value="9" />
                                <p:commandButton value="10" />
                                <p:commandButton value="11" />
                                <p:commandButton value="12" />
                                <p:commandButton value="13" />
                                <p:commandButton value="14" />
                                <p:commandButton value="15" />
                                <p:commandButton value="16" />
                                <p:commandButton value="17" />
                                <p:commandButton value="18" />
                                <p:commandButton value="19" />
                                <p:commandButton value="20" />
                                <p:commandButton value="21" />
                                <p:commandButton value="22" />
                                <p:commandButton value="23" />
                                <p:commandButton value="24" />
                                <p:commandButton value="25" />
                                <p:commandButton value="26" />
                                <p:commandButton value="27" />
                                <p:commandButton value="28" />
                                <p:commandButton value="29" />
                                <p:commandButton value="30" />
                                <p:commandButton value="31" />
                                <p:commandButton value="32" />
                                <p:commandButton value="33" />
                                <p:commandButton value="34" />
                                <p:commandButton value="35" />
                                <p:commandButton value="36" />
                                <p:commandButton value="37" />
                                <p:commandButton value="38" />
                            </h:panelGrid>

                        </h:form>  
                    </p:dialog>  

                </h:form>

            </p:panel>
            <p:dataTable id="tabela1" value="#{apostaJsfBean.rodada.listaJogosTime1}" var="item"
                         emptyMessage="Nenhum registro cadastrado." >

                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Casa"/>
                    </f:facet>
                    <h:outputText value="#{item.time1.nome}"/>
                </p:column>

                <p:column>
                    <f:facet name="header">
                        <h:outputText value="Visitante"/>
                    </f:facet>
                    <h:outputText value="#{item.time2.nome}"/>
                </p:column>

            </p:dataTable>

        </ui:define>
    </ui:composition>

</html>

